package com.mllweb.blog.service;

import com.mllweb.blog.data.orm.BlogArticle;

import java.util.List;

/**
 * 文章服务
 */
public interface ArticleService {
    /**
     * 添加文章
     * @param article
     * @param categoryId
     */
    void insert(BlogArticle article,int categoryId);

    BlogArticle select(int id);

    List<BlogArticle> selectByCategoryId(int id);
}
